/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.frogs.manager;

import com.frogs.data.AbstractManager;
import com.frogs.exception.FrogsFindException;
import com.frogs.exception.FrogsMergeException;
import com.frogs.exception.FrogsPersistException;
import com.frogs.exception.FrogsRemoveException;
import com.frogs.model.Estilo;
import java.util.List;
import javax.persistence.EntityManager;

/**
 *
 * @author gabrielbran
 */
public class ManagerEstilo extends AbstractManager {

    public ManagerEstilo() {
        super();
    }

    public Estilo guardaEstilo(Estilo e) throws FrogsPersistException {
        return (Estilo) super.persistObject(e);
    }

    public Estilo actualizaEstilo(Estilo e) throws FrogsMergeException {
        return (Estilo) super.mergeObject(e);
    }

    public void eliminaEstilo(Estilo e) throws FrogsRemoveException  {
        super.removeObject(e);
    }

    public List<Estilo> getListaEstilos() throws FrogsFindException {
        return (List<Estilo>) super.getEntityList();
    }

    public Estilo buscarEstilo(Integer epk) throws Exception {
        return (Estilo) super.findById(epk);
    }

    @Override
    public EntityManager getEm() {
        return super.getEm();
    }

    @Override
    public String getEntityName() {
        return "Estilo";
    }
}
